/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.domain.req;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import org.hibernate.validator.constraints.Length;

import java.time.LocalDateTime;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 *
 *
 * @author zgy
 * @date 2021-7-29
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class SaveTrainSumRequest {

    /**
     * 培训总结Id
     */

    private Long trainSumId;
    /**
     * 处理人Id
     */
    @NotNull
    private Long handleUserId;
    /**
     * 培训Id
     */
    @NotNull
    private Long trainId;
    /**
     * 培训内容
     */
    @NotBlank
    @Length(max = 500)
    private String content;
    /**
     * 总结内容
     */
    @NotBlank
    @Length(max = 500)
    private String sumContent;
    /**
     * 备注
     */
    @NotBlank
    @Length(max = 500)
    private String comment;

    /**
     * 培训时间（时间段）
     */
    @NotBlank
    @Length(max = 80)
    private String trainTime;
    /**
     * 总结时间
     */
    @NotNull
    private LocalDateTime sumTime;
    /**
     * 证书名称
     */
    @Length(max = 60)
    private String certificateName;
    /**
     * 有无证书：0-无证书，1-有证书
     */
    @NotNull
    private Boolean certificateFlag;
}
